]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Center app icon
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 7 May 2020 12:25:13 +0000 (14:25 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 7 May 2020 12:57:12 +0000 (14:57 +0200)
Giving the icon extra space may distort it, so center it vertically.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2578

js/ui/panel.js

index 1c6e3f368e2f50249a41530ea569557169f4d0d9..8d9e71872dda3b04a7260e999c303ce750ab34ce 100644 (file)
@@ -214,7 +214,10 @@ var AppMenuButton = GObject.registerClass({
                              this._onIconThemeChanged.bind(this));
 
         let iconEffect = new Clutter.DesaturateEffect();
-        this._iconBox = new St.Bin({ style_class: 'app-menu-icon' });
+        this._iconBox = new St.Bin({
+            style_class: 'app-menu-icon',
+            y_align: Clutter.ActorAlign.CENTER,
+        });
         this._iconBox.add_effect(iconEffect);
         this._container.add_actor(this._iconBox);